# mock defaults
# vim:tw=0:ts=4:sw=4:et:
config_opts['plugin_conf']['package_state_enable'] = False
config_opts['plugin_conf']['ccache_enable'] = False

config_opts['plugin_conf']['yum_cache_enable'] = False

config_opts['plugin_conf']['root_cache_enable'] = True
# when used build ignores additional buildroot packages, reason unknown
# config_opts['plugin_conf']['root_cache_opts']['age_check'] = False
config_opts['plugin_conf']['bind_mount_enable'] = False

config_opts['plugin_conf']['compress_logs_enable'] = True
config_opts['plugin_conf']['compress_logs_opts'] = {}
config_opts['plugin_conf']['compress_logs_opts']['command'] = "/usr/bin/gzip -9 --force"

config_opts['plugin_conf']['tmpfs_enable'] = True
config_opts['plugin_conf']['tmpfs_opts'] = {}
config_opts['plugin_conf']['tmpfs_opts']['required_ram_mb'] = 1024
config_opts['plugin_conf']['tmpfs_opts']['max_fs_size'] = '75g'
config_opts['plugin_conf']['tmpfs_opts']['mode'] = '0755'
config_opts['plugin_conf']['tmpfs_opts']['keep_mounted'] = False

{% if ansible_distribution == 'Fedora' and ansible_distribution_major_version|int > 21 %}
config_opts['yum_command'] = '/usr/bin/yum-deprecated'
{% endif %}

{% if ansible_architecture == 'x86_64' %} # nosync does not currently work for epel-7-ppc64le chroot (https://github.com/rpm-software-management/mock/issues/53)
config_opts['nosync'] = True
{% endif %}
